import java.util.*;
class City{
	//name of city
	private String name;
	//name getter
	public String getName(){
		return name;
	}
	//routes list
	private ArrayList routes = new ArrayList();
	//route list getter
	public ArrayList getRoutes(){
		return routes;
	}
	//current distance
	private double currentDistance = Double.POSITIVE_INFINITY;
	//current distance getter
	public double getCurrentDistance(){
		return currentDistance;
	}
	//current distance setter
	public void setCurrentDistance(double theDistance){
		currentDistance = theDistance;
	}
	//previous city
	private City previous = null;
	//previous getter
	public City getPrevious(){
		return previous;
	}
	//previous setter
	public void setPrevious(City thePrevious){
		previous = thePrevious;
	}
	//constructor, only fills in name
	public City(String theName){
		name = theName; 
	}

}